﻿<%@ Page Title="" Language="C#" MasterPageFile="~/List.Master" AutoEventWireup="true" CodeBehind="AutoGenno.aspx.cs" Inherits="SGRapidForm.Foundation.AutoGenno" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" runat="server">
    <script src="AutoGenno.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpBody" runat="server">
 <div class="ui-menu">
        <uc:Menu ID="menu1" runat="server" DataFile="../Views/Foundation/Menu/AutoGenno.xml"
            PageCode="AutoGenno" />
    </div>
    <div style="width:95%" class="ui-wrapper">
        <div  id="listall" class="ui-content-item ui-content-item-selected">
            <%--gvwList--%>
            <dx:ASPxGridView ID="gvwList" ClientInstanceName="gvwList" runat="server" AutoGenerateColumns="False"
                DataSourceForceStandardPaging="True" DataSourceID="odsList" Width="100%" KeyFieldName="Keyid"
                OnCustomCallback="gvwList_CustomCallback">
                <Columns>
                    <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" Caption="选择"
                        Width="40px" HeaderStyle-HorizontalAlign="Center">
                    </dx:GridViewCommandColumn>
                    <dx:GridViewDataColumn Caption="编码" FieldName="Noclass" Width="80px"
                        VisibleIndex="1">
                    </dx:GridViewDataColumn>
                   <dx:GridViewDataCheckColumn FieldName="Autogenid" VisibleIndex="2" Caption="是否自动编码" Width="70px"
                        Settings-AllowSort="False" HeaderStyle-HorizontalAlign="Center">
                        <PropertiesCheckEdit DisplayTextChecked="true" DisplayTextUnchecked="false" />
                    </dx:GridViewDataCheckColumn>
                    <dx:GridViewDataColumn Caption="前缀码" FieldName="Nopre" Width="40px" VisibleIndex="3">
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataColumn Caption="分割线" FieldName="Splitter" VisibleIndex="4">
                    </dx:GridViewDataColumn>
                    <dx:GridViewDataColumn Caption="规则" FieldName="Ruleno" VisibleIndex="5">
                    </dx:GridViewDataColumn>
                      <dx:GridViewDataColumn Caption="例子" FieldName="Exampleno" VisibleIndex="6">
                    </dx:GridViewDataColumn>

                </Columns>
                <ClientSideEvents SelectionChanged="doSelect" RowDblClick="doSelectedItem" />
                <SettingsBehavior AllowFocusedRow="true" />
                <SettingsLoadingPanel Text="加载中..." />
                <SettingsPager PageSize="15" Mode="ShowPager" Summary-Text="当前第{0}页，共{1}页（共{2}条）"></SettingsPager>
                    <SettingsText EmptyDataRow="没有数据显示" />
                <SettingsText EmptyDataRow="没有数据显示" />
            </dx:ASPxGridView>
            <%--数据源控件--%>
            <asp:ObjectDataSource ID="odsList" runat="server" SortParameterName="sortColumns"
                EnablePaging="true" StartRowIndexParameterName="startRecord" MaximumRowsParameterName="maxRecords"
                SelectCountMethod="PagingGetAutoGennoCount" SelectMethod="PagingGetAutoGenno"
                TypeName="SGRapidForm.Foundation.AutoGennoManage">
                <SelectParameters>
                    <asp:ControlParameter Name="filterConditions" Type="String" ControlID="hfFilterCondition"
                        PropertyName="Value" ConvertEmptyStringToNull="false" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <%--存储过滤条件--%>
            <asp:HiddenField ID="hfFilterCondition" ClientIDMode="Static" runat="server" Value=" " />
        </div>
        <div id="search" class="ui-content-item">
            <ul class="ui-list">
                <li>
                    <dx:ASPxLabel ID="lblNoclass" runat="server" Text="编码：" AssociatedControlID="txtNoclass" />
                </li>
                <li>
                    <dx:ASPxTextBox ID="txtNoclass" ClientInstanceName="txtNoclass"
                        runat="server" Width="120px">
                    </dx:ASPxTextBox>
                </li>
                <li>
                    <dx:ASPxLabel ID="lblCreatename" runat="server" Text="创建人：" AssociatedControlID="txtCreatename" />
                </li>
                <li>
                    <dx:ASPxTextBox ID="txtCreatename" ClientInstanceName="txtCreatename"
                        runat="server" Width="120px">
                    </dx:ASPxTextBox>
                </li>
                <li>

                    <dx:ASPxLabel ID="lblAutogenid" runat="server" Text="是否自动编码：" />
                </li>
                <li>
                    <dx:ASPxRadioButtonList ID="rblAutogenid" ClientInstanceName="rblAutogenid" runat="server"
                        RepeatDirection="Horizontal" RepeatLayout="Table" Width="120">
                        <Items>
                            <dx:ListEditItem Text="是" Value="true" />
                            <dx:ListEditItem Text="否" Value="false" />
                        </Items>
                        <Paddings Padding="0" />
                    </dx:ASPxRadioButtonList>
                </li>
            </ul>
             <ul class="ui-list">
              <li>
                    <dx:ASPxLabel ID="lblModifyname" runat="server" Text="修改人：" AssociatedControlID="txtModifyname"  />
                </li>
                <li>
                    <dx:ASPxTextBox ID="txtModifyname" ClientInstanceName="txtModifyname"
                        runat="server" Width="120px">
                    </dx:ASPxTextBox>
                </li>
               <li>
                    <dx:ASPxLabel ID="lblCreatedate" runat="server" Text="创建日期：" AssociatedControlID="deCreatedate" />
                </li>
                <li>
                    <dx:ASPxDateEdit ID="deCreatedate" ClientInstanceName="deCreatedate" runat="server" Width="120px"
                        EditFormatString="yyyy-MM-dd" >
                    </dx:ASPxDateEdit>
                </li>
             </ul>
            <ul class="sl-floatcenter clearfix">
                <li class="sl-floatcenter-item">
                    <dx:ASPxButton ID="btnSubmit" ClientInstanceName="btnSubmit" runat="server" Text="查 询"
                        AutoPostBack="false">
                        <ClientSideEvents Click="doSubmittedToSearch" />
                    </dx:ASPxButton>
                </li>
                <li class="sl-floatcenter-item">
                    <dx:ASPxButton ID="btnReset" ClientInstanceName="btnReset" runat="server" Text="重 置"
                        AutoPostBack="false">
                        <ClientSideEvents Click="doResetToSearch" />
                    </dx:ASPxButton>
                </li>
            </ul>
            </div>

    </div>
</asp:Content>
